package com.itheima.mapper;

import com.itheima.pojo.Order;
import org.apache.ibatis.annotations.MapKey;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;
import java.util.Map;

public interface OrderMapper {
    Order findOrder(@Param("memberId") Integer memberId, @Param("orderDate") Date orderDate, @Param("setMealId") Integer setMealId);

    void save(Order order);

    List<Order> findOrders(Integer memberId);

    Map<String, Object> findById(@Param("orderId") Integer id);
}
